package org.ssmd3.pojo;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class News extends Base{


    private int id;
    private String title;
    private String review;
    private String author;
    private String newsContent;
    private String newsImg;
    private int isTop;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createDate;

    private String createDate1;//拓展字段 搜索开始时间

    private String createDate2;//拓展字段 搜索结束时间
    private int typeId;
    private String typeName;

    public String getCreateDate1() {
        return createDate1;
    }

    public void setCreateDate1(String createDate1) {
        this.createDate1 = createDate1;
    }

    public String getCreateDate2() {
        return createDate2;
    }

    public void setCreateDate2(String createDate2) {
        this.createDate2 = createDate2;
    }

    public String getTypeName() {
        return typeName;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getReview() {
        return review;
    }
    public void setReview(String review) {
        this.review = review;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public String getNewsContent() {
        return newsContent;
    }
    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }
    public String getNewsImg() {
        return newsImg;
    }
    public void setNewsImg(String newsImg) {
        this.newsImg = newsImg;
    }
    public int getIsTop() {
        return isTop;
    }
    public void setIsTop(int isTop) {
        this.isTop = isTop;
    }
    public Date getCreateDate() {
        return createDate;
    }
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public int getTypeId() {
        return typeId;
    }
    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }
}
